package general;

public class US_Mult extends Functional_Unit {

    //
    //default constructor
    //
    public US_Mult () {
        super();
        layout();
    }
    
    //
    //regular constructor
    //
    public US_Mult (int new_m, int new_dim) {
        //create a functional unit
        super(new_m, new_dim);
        layout();
    }

    //
    //carry out a multiplication
    //
    public void multiply(int inA, int inB) {
        //smartSize(inA, inB);
        //initialize( inA, inB );
        //compute();
    }
    
    //
    //establish the cell layout
    //
    @Override
    public void layout() {
        int i, j;
        //set up as an unsigned multipler
        //iterate over the rows
        for(i = 0; i < getDim(); i++) {
            //iterate over the columns
            for(j = 0; j < getDim(); j++) {
                //set the cell type
                cellfield[i][j].setType('A');
            }
        }
    }
    
    //
    //perform the multiplication
    //
    @Override
    public int compute() {
        return 0;
    }

}

